// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import - 为依赖文件

import Vue from 'vue';
import App from './App';
import router from './router';
import axios from 'axios';

// 全局注册
Vue.prototype.$http = axios;
axios.defaults.withCredentials = true;

Vue.config.productionTip = false;

/* eslint-disable no-new */
// 新建一个vue实例
new Vue({
  el: '#app',
  router,
  template: '<App/>',
  // 依赖App组件
  components: { App }
});
